package com.example.mall.user.api.cmd;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author Mickey
 * @since 2022/4/9
 **/
@Data
@AllArgsConstructor
public class CreateUserAccountCmd {

    private String nickname;

    private CreateUserAccountCmd() {

    }

    public static CreateUserAccountCmd ofCreate() {
        return new CreateUserAccountCmd(null);
    }

    public static CreateUserAccountCmd ofCreate(String nickname) {
        return new CreateUserAccountCmd(nickname);
    }
}
